package com.micolor.logr.runtime.enums;

/**
 * @author EvanGe
 * @Type LogRConfigEnum.java
 * @Desc
 * @date 2024/8/6 16:32
 */
public enum LogRConfigEnum {

    LogR_Strategy_Simple("simple"),
    LogR_Strategy_Detail("detail"),
    LogR_Class_Based("CLASS_BASED"),
    LogR_Cache_Based("CACHE_BASED");


    private String key;

    LogRConfigEnum(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }


    /**
     * Returns the name of this enum constant, as contained in the
     * declaration.  This method may be overridden, though it typically
     * isn't necessary or desirable.  An enum class should override this
     * method when a more "programmer-friendly" string form exists.
     *
     * @return the name of this enum constant
     */
    @Override
    public String toString() {
        return getKey();
    }
}
